package com.flying.enumeration;

/**
 * @ClassName: DayOfWeek
 * @author: 刘鹏飞
 * @date 2023/7/20 19:00
 * @Description: 手动实现枚举
 */
public class DayOfWeek {
    private String name;

    public static final DayOfWeek MON=new DayOfWeek("周一");
    public static final DayOfWeek TUE=new DayOfWeek("周二");
    public static final DayOfWeek WED=new DayOfWeek("周三");
    public static final DayOfWeek THU=new DayOfWeek("周四");
    public static final DayOfWeek FRI=new DayOfWeek("周五");
    public static final DayOfWeek SAT=new DayOfWeek("周六");
    public static final DayOfWeek SUN=new DayOfWeek("周日");

    private DayOfWeek(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
